package mvc.controllers.app
{
	import mvc.Notifications;
	import mvc.models.proxys.AppMainProxy;
	
	import org.puremvc.as3.interfaces.INotification;
	import org.puremvc.as3.patterns.command.SimpleCommand;
	
	import xl.utils.Tracker;

	public class StartUpCommand extends SimpleCommand
	{
		public function StartUpCommand()
		{
			super();
		}
		
		override public function execute(notification:INotification):void
		{
			var mApp:flexSRWeb = notification.getBody() as flexSRWeb;
			
			//register proxy;
			facade.registerProxy(new AppMainProxy());
			
			
			Tracker.log("start up......");
			//notify finishing the init;
			sendNotification(Notifications.APP_STARTUP_OVER,notification.getBody());
			

		}
	}
}